# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-nbxmpp
_pkgname=nbxmpp
pkgver=3.1.0
pkgrel=0
pkgdesc="A non-blocking XMPP implementation for python"
url="https://dev.gajim.org/gajim/python-nbxmpp/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-nbxmpp # Backwards compatibility
provides=py-nbxmpp=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f311ef1faac942625b52792996a8a5f373cd4af081978b4072bb0c89b489310b77e1cde84673dc502311fa691ec20df536e126d51ea552d6d75f5cf0bf610776  nbxmpp-3.1.0.tar.gz
"
